//
//  CantactModel.m
//  自定义UITabBarViewControll
//
//  Created by 尧的mac on 15/11/13.
//  Copyright © 2015年 尧的mac. All rights reserved.
//

#import "CantactModel.h"
#define NAME @"name"
#define PHONE @"phone"
@implementation CantactModel

- (void)encodeWithCoder:(NSCoder *)aCoder{
    
    [aCoder encodeObject:self.name forKey:NAME];
    [aCoder encodeObject:self.deText forKey:PHONE];
    
    
}
- (instancetype)initWithCoder:(NSCoder *)aDecoder{
    
    self.name =[aDecoder decodeObjectForKey:NAME];
    self.deText = [aDecoder decodeObjectForKey:PHONE];
    
    return self;
    
}
@end
